﻿using LuShanTea.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.IService
{
    public interface IOrderRecordService : IServiceSupport
    {
        long AddNew(OrderRecordAddNewDTO orderRecordAddNewDTO);

        void MarkDeleted(long orderRecordId);

        void UpdateOrderRecord(OrderRecordDTO orderRecordDTO);

        OrderRecordDTO GetById(long orderRecordId);

        OrderRecordDTO[] GetOrderRecordByOrderId(long orderId);
        /// <summary>
        /// 判断该用户是否具有该状态下的订单
        /// </summary>
        /// <param name="userId">用户id</param>
        /// <param name="orderStatusId">订单状态id</param>
        /// <param name="orderRecordId">订单记录id</param>
        /// <returns></returns>
        bool CheckUserIsOrderRecord(long userId, long orderStatusId,long orderRecordId);

        OrderRecordDTO[] GetORPackIdByCommentIds(IEnumerable<long> commentIds);

    }
}
